home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / Technical Docs / Apple II Technical Notes / Technical Notes (Text) / IIGS / TN.IIGS.005 < prev    next >
Encoding:
Text File  |  1988-12-16  |  2.4 KB  |  45 lines  |  [TEXT/pdos]

  1. Apple II
  2. Technical Notes
  3. _____________________________________________________________________________
  4.                                                   Developer Technical Support
  5.  
  6.  
  7. Apple IIGS
  8. #5:    Window and Menu Titles
  9.  
  10. Revised by:    Matt Deatherage                                  November 1988
  11. Written by:    Dan Oliver                                        October 1986
  12.  
  13. This Technical Note discusses spacing for both window and menu titles.
  14. _____________________________________________________________________________
  15.  
  16. Strings used for window titles should always have a space as the first and 
  17. last characters.  This spacing is especially important for windows that use a 
  18. lined window title bar since, without the beginning and ending space, the line 
  19. pattern in the title bar runs against the title.  Since there will be window 
  20. editor desk accessories which allow the user to change the title bar pattern 
  21. without the application knowing, you should pad your window titles with spaces 
  22. even if you are using black window title bars.
  23.  
  24. The Window Manager does not force spaces on either side of titles to optimize 
  25. the window frame drawing speed; it is much faster to let the text punch a hole 
  26. in the title bar pattern than to compute the rectangle, fill it, and draw the 
  27. text.
  28.  
  29. To provide the user with a consistent visual interface, you should also pad 
  30. your menu titles with spaces.  If you use either one or two spaces (the Apple 
  31. IIGS Finder has used two) before and after each menu title, your menu titles 
  32. will be consistent and balanced (two spaces work well in 640 mode where one 
  33. space usually suffices for 320 mode).  Although it is true that a menu bar 
  34. will look about the same if the first menu title has two spaces before it and 
  35. no space following it and all the other menu titles have four spaces before 
  36. them, when the user pulls down the menu, the Menu Manager's highlighting will 
  37. clearly (and embarrassingly) show the spaces in the menu titles.
  38.  
  39. If you would like to place the Apple menu differently, you must use Menu 
  40. Manager calls since you cannot place spaces around the at sign (@) which the 
  41. Menu Manager uses to represent the Apple logo in a menu title.  The easiest 
  42. way to accomplish this is calling SetMTitleStart to set the starting position 
  43. for the leftmost title (usually the Apple menu) within the current menu bar.  
  44. The Apple IIGS Finder has used a value of 10 ($0A) pixels.
  45.